import numpy as np
import matplotlib.pyplot as plt
plt.figure(figsize=(6,4))
plt.rcParams['font.sans-serif']='SimHei'
x=np.arange(1,6)
y=np.array([30,50,21,60,40])
plt.xlabel('x')
plt.ylabel('y')
for a,b in zip(x,y):
    plt.text(x=a,y=b,s=b,fontsize=12,ha='center')
plt.grid(axis='both')
plt.plot(x,y)
plt.legend(('语文',))
plt.savefig('C:/26.png')
plt.show()